home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2004:141
- #
-
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(15839);
- script_version ("$Revision: 1.1 $");
- script_cve_id("CAN-2004-1010");
-
- name["english"] = "MDKSA-2004:141: zip";
-
- script_name(english:name["english"]);
-
- desc["english"] = "
- The remote host is missing the patch for the advisory MDKSA-2004:141 (zip).
-
-
-
- A vulnerability in zip was discovered where zip would not check the resulting
- path length when doing recursive folder compression, which could allow a
- malicious person to convince a user to create an archive containing a
- specially-crafted path name. By doing so, arbitrary code could be executed with
- the permissions of the user running zip.
-
- The updated packages are patched to prevent this problem.
-
-
-
- Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2004:141
- Risk factor : High";
-
-
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the zip package";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Mandrake Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
- script_require_keys("Host/Mandrake/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"zip-2.3-11.1.100mdk", release:"MDK10.0", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"zip-2.3-11.1.101mdk", release:"MDK10.1", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"zip-2.3-11.1.92mdk", release:"MDK9.2", yank:"mdk") )
- {
- security_hole(0);
- exit(0);
- }
- if (rpm_exists(rpm:"zip-", release:"MDK10.0")
- || rpm_exists(rpm:"zip-", release:"MDK10.1")
- || rpm_exists(rpm:"zip-", release:"MDK9.2") )
- {
- set_kb_item(name:"CAN-2004-1010", value:TRUE);
- }
-